Skip to content

fix: avoid focusing booted iOS simulators#790

Merged
thymikee merged 1 commit into
mainfrom
codex/fix-ios-simulator-focus
Jun 12, 2026
Merged

fix: avoid focusing booted iOS simulators#790
thymikee merged 1 commit into
mainfrom
codex/fix-ios-simulator-focus

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

Avoid stealing macOS focus when an iOS simulator is already booted and a daemon open command prepares or reuses a session.

Before: daemon open preparation always requested focusExisting, so follow-up commands could foreground Simulator or Device Hub.

After: open preparation only ensures device readiness; the existing cold-boot path still foregrounds the simulator when it is opened from scratch.

Touched 3 files. Scope stayed in daemon open preparation and regression coverage.

Validation

Targeted daemon regression tests pass: ./node_modules/.bin/vitest run src/daemon/tests/request-router-open.test.ts src/daemon/handlers/tests/session.test.ts.

Static checks pass: pnpm check:quick. Formatting was applied with ./node_modules/.bin/oxfmt --write and git diff --check is clean.

pnpm check:unit was attempted after network escalation for pnpm verification, but failed in unrelated Android/iOS platform tests with 14 mocked command timeouts/failures; the touched daemon tests passed separately.

@thymikee thymikee merged commit c925563 into main Jun 12, 2026
15 of 18 checks passed
@thymikee thymikee deleted the codex/fix-ios-simulator-focus branch June 12, 2026 12:58
@github-actions

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.3 MB 1.3 MB -572 B
JS gzip 409.8 kB 409.5 kB -329 B
npm tarball 543.2 kB 542.5 kB -645 B
npm unpacked 1.8 MB 1.8 MB -1.8 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 28.7 ms 29.1 ms +0.3 ms
CLI --help 54.9 ms 54.4 ms -0.5 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/3793.js +135.9 kB +40.7 kB
dist/src/9542.js -46 B -79 B
dist/src/cli.js -56 B -21 B
dist/src/cli-output.js -31 B -19 B
dist/src/session.js -17 B -10 B

@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-12 13:00 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant